/*
Jack Morris
11/20/14
Chapter 7
Page 157
Assinment 10
*/
#include <stdio.h>
#include <ctype.h>  

int main(void)
{
    char input;
    int count = 0;

    printf("\nEnter a sentence: ");

    while ((input = getchar()) != '\n') {
        switch (toupper(input)) {
            case 'A': case 'E': case 'I': case 'O': case 'U':
                count++;
                break;
        }
    }

    printf("Your sentence contains %d vowels.\n\n", count);

    return 0;
}